package lovo01.lesson04;

import com.sun.jmx.snmp.SnmpUnknownAccContrModelException;

import javax.xml.namespace.QName;

/**
 * 医生类
 */
public class Doctor extends Role implements Treat{

    public Doctor() {
    }

    public Doctor(String name, int level) {
        super(name, level);
    }

    @Override
    public void treat() {
        System.out.println("会治疗");
    }

    @Override
    void selfIntroduce() {
        System.out.println("我是:" + getName() + ",目前等级是："
                + getLevel() + "级" + "，是一名医生");
    }
}
